//
// Created by denglibin on 2021/4/11 0011.
//

#include "road_position.h"
#include "stdlib.h"
/**
 * 创建
 * @param startX
 * @param endX
 * @param y
 * @return
 */
RoadPosition * RP_createRoadPosition(int startX, int endX, int y){
    RoadPosition * roadPosition  = (RoadPosition*) calloc(1, sizeof(RoadPosition));
    roadPosition->startX = startX;
    roadPosition->endX = endX;
    roadPosition->y = y;
    return roadPosition;
}

/**
 * 释放资源
 * @param roadPosition
 * @return
 */
RoadPosition * RP_freeRoadPosition(RoadPosition* roadPosition){
    free(roadPosition);
}